﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
using Ashlen.Portal.Core;
using Ashlen.Portal.Core.DTO;
using Ashlen.Portal.Core.DataInterfaces;
using Ashlen.Portal.Data;
using Ashlen.Portal.Services.BindingExtensions;

namespace Ashlen.Portal.Services
{
    [ServiceContract]
    public interface IMembershipService
    {
        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest)]
        [JSONPBehavior(callback = "callback")] 
        string SendPasswordViaEmail(string emailAddress);

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest)]
        [JSONPBehavior(callback = "callback")]
        string GetUserDetails(string userGuidAsString);

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest)]
        [JSONPBehavior(callback = "callback")]
        string SaveUserDetails(User user);

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest)]
        [JSONPBehavior(callback = "callback")]
        string RegisterUser(User user);

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest)]
        [JSONPBehavior(callback = "callback")]
        string SaveAvatarFromLayout(string userGuid, string layout);
    }
}
